package com.inspur.his.service.impl;

import com.inspur.his.mapper.DrugsMapper;
import com.inspur.his.pojo.Drugs;
import com.inspur.his.service.DrugsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * @Description:
 * @Date: 2022/12/20 16:56
 */
@Service("drugsService")
public class DrugsServiceImpl implements DrugsService {

    @Autowired
    private DrugsMapper drugsMapper;

    @Override
    public List<Drugs> drugsList(HashMap map) {
        return drugsMapper.drugsList(map);
    }

    @Override
    public Drugs findById(Drugs drugs) {
        return drugsMapper.findById(drugs);
    }

    @Override
    public void drugsAdd(Drugs drugs) {
        drugsMapper.drugsAdd(drugs);
    }

    @Override
    public void drugsDelete(Drugs drugs) {
        drugsMapper.drugsDelete(drugs);
    }
}
